<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets">
<ui:composition template="/template.xhtml">
        
        <ui:define name="title">
            <h:outputText value="#{bundle['Service.Profile.MainPage']}"></h:outputText>
        </ui:define>
    
    
        <ui:define name="menu">
            <div class="block_menu">
                <h:form>
                    <div class="block_menu_left">
                        <h:commandLink action="/index" value="#{bundle['Menu.Main']}"/>
                    </div>
                    <div class="block_menu_left">
                        <h:commandLink action="/notes/List" value="#{bundle['Menu.Notes']}"/>
                    </div>

                    
                    <div class="block_menu_right">
                        <h:commandLink action="#{userManagerController.logout()}" value="#{bundle['Menu.Logout']}"/>
                    </div>

                    <h:panelGroup rendered="#{userManagerController.isRoleAdmin() == 1}">
                        <div class="block_menu_left">
                            <h:commandLink action="/users/List" value="#{bundle['Menu.UsersManagement']}"/>
                        </div>
                    </h:panelGroup>
                    
                </h:form>
            </div>
        </ui:define>
    
    
    
        <ui:define name="body">
            <h:messages errorClass="error" infoClass="info" />
        <center>
        <div style="padding-top: 25px;">
            
            
            

        <h:form>
            <h:panelGrid columns="2" columnClasses="registrationFormFirst,registrationFormSecond">   
                <h:outputLabel/> 
                <h:outputLabel value="#{bundle['Service.Profile.Title.ChangeEmail']}"
                   style="font: 20pt 'Segoe WP'; font-weight: bold; color: #505050;"/> 
            </h:panelGrid>
            
            <hr width="350px" size="3" color="#606060"></hr>
            
            <h:panelGrid columns="2" columnClasses="registrationFormFirst,registrationFormSecond" >
                
                <h:outputLabel value="#{bundle['Service.Profile.Label.Email']}"
                               style="font: 16pt 'Segoe WP';  color: #707070;"/> 
                
                <h:inputText maxlength="25" required="true"
                    style="width: 180px; height: 30px; padding-left: 5px; font: 12pt 'Segoe WP'; color: #707070;
                        background-color: #ffffff; border: 2px solid #707070;" 
                        value="#{userManagerController.email}" 
                    title="#{bundle['Service.Profile.Title.Email']}"
                    requiredMessage="#{bundle['Service.Profile.RM.Email']}"/>
            </h:panelGrid>
            
            <h:panelGrid columns="2" columnClasses="registrationFormFirst,registrationFormSecond" >
                
                <h:outputLabel value="#{bundle['Service.Profile.Label.NewEmail']}"
                               style="font: 16pt 'Segoe WP';  color: #707070;"/> 
                
                <h:inputText maxlength="25" required="true"
                    style="width: 180px; height: 30px; padding-left: 5px; font: 12pt 'Segoe WP'; color: #707070;
                        background-color: #ffffff; border: 2px solid #707070;" 
                        value="#{userManagerController.newEmail}" 
                    title="#{bundle['Service.Profile.Title.NewEmail']}"
                    requiredMessage="#{bundle['Service.Profile.RM.NewEmail']}"/>
            </h:panelGrid>
            
            <h:panelGrid columns="2" columnClasses="registrationFormFirst,registrationFormSecond" >
                
                <h:outputLabel value="#{bundle['Service.Profile.Label.Re-NewEmail']}"
                               style="font: 16pt 'Segoe WP';  color: #707070;"/> 
                
                <h:inputText maxlength="25" required="true"
                    style="width: 180px; height: 30px; padding-left: 5px; font: 12pt 'Segoe WP'; color: #707070;
                        background-color: #ffffff; border: 2px solid #707070;" 
                        value="#{userManagerController.reNewEmail}" 
                    title="#{bundle['Service.Profile.Title.Re-NewEmail']}"
                    requiredMessage="#{bundle['Service.Profile.RM.Re-NewEmail']}"/>
            </h:panelGrid>
            
            
            <h:panelGrid columns="2" columnClasses="registrationFormFirstButtonReset,registrationFormSecondButtonRegistration">
                <h:commandButton type="reset" style="width: 100px; height: 45px; font: 12pt 'Segoe WP'; font-weight: bold; 
                                        color: #505050; background-color: #f0f0f0; border: 3px solid #606060;" 
                                 value="#{bundle['Service.Registration.LabelButton.Reset']}"/>
                
                <h:commandButton type="submit" style="width: 190px; height: 45px; font: 16pt 'Segoe WP'; font-weight: bold; 
                                         color: #505050; background-color: #DDFFC5; border: 3px solid #505050;" 
                                 value="#{bundle['Service.Profile.LabelButton.ChangeEmail']}"
                                 action="#{userManagerController.changeEmail()}"/>
            </h:panelGrid>
            
        </h:form>
            
        <br/>  <br/>
       
        <h:form>
            <h:panelGrid columns="2" columnClasses="registrationFormFirst,registrationFormSecond">   
                <h:outputLabel/> 
                <h:outputLabel value="#{bundle['Service.Profile.Title.Password']}"
                   style="font: 20pt 'Segoe WP'; font-weight: bold; color: #505050;"/> 
            </h:panelGrid>
            
            <hr width="350px" size="3" color="#606060"></hr>
            
            <h:panelGrid columns="2" columnClasses="registrationFormFirst,registrationFormSecond" >
                
                <h:outputLabel value="#{bundle['Service.Profile.Label.Password']}"
                               style="font: 16pt 'Segoe WP';  color: #707070;"/> 
                
                <h:inputSecret maxlength="25" required="true"
                    style="width: 180px; height: 30px; padding-left: 5px; font: 12pt 'Segoe WP'; color: #707070;
                        background-color: #ffffff; border: 2px solid #707070;" 
                        value="#{userManagerController.password}" 
                    title="#{bundle['Service.Profile.Title.Password']}"
                    requiredMessage="#{bundle['Service.Profile.RM.Password']}"/>
            </h:panelGrid>
            
            <h:panelGrid columns="2" columnClasses="registrationFormFirst,registrationFormSecond" >
                
                <h:outputLabel value="#{bundle['Service.Profile.Label.NewPassword']}"
                               style="font: 16pt 'Segoe WP';  color: #707070;"/> 
                
                <h:inputSecret maxlength="25" required="true"
                    style="width: 180px; height: 30px; padding-left: 5px; font: 12pt 'Segoe WP'; color: #707070;
                        background-color: #ffffff; border: 2px solid #707070;" 
                        value="#{userManagerController.newPassword}" 
                    title="#{bundle['Service.Profile.Title.NewPassword']}"
                    requiredMessage="#{bundle['Service.Profile.RM.NewPassword']}"/>
            </h:panelGrid>
            
            <h:panelGrid columns="2" columnClasses="registrationFormFirst,registrationFormSecond" >
                
                <h:outputLabel value="#{bundle['Service.Profile.Label.Re-NewPassword']}"
                               style="font: 16pt 'Segoe WP';  color: #707070;"/> 
                
                <h:inputSecret maxlength="25" required="true"
                    style="width: 180px; height: 30px; padding-left: 5px; font: 12pt 'Segoe WP'; color: #707070;
                        background-color: #ffffff; border: 2px solid #707070;" 
                        value="#{userManagerController.reNewPassword}" 
                    title="#{bundle['Service.Profile.Title.Re-NewPassword']}"
                    requiredMessage="#{bundle['Service.Profile.RM.Re-NewPassword']}"/>
            </h:panelGrid>
            
            
            <h:panelGrid columns="2" columnClasses="registrationFormFirstButtonReset,registrationFormSecondButtonRegistration">
                <h:commandButton type="reset" style="width: 100px; height: 45px; font: 12pt 'Segoe WP'; font-weight: bold; 
                                        color: #505050; background-color: #f0f0f0; border: 3px solid #606060;" 
                                 value="#{bundle['Service.Registration.LabelButton.Reset']}"/>
                
                <h:commandButton type="submit" style="width: 190px; height: 45px; font: 16pt 'Segoe WP'; font-weight: bold; 
                                         color: #505050; background-color: #DDFFC5; border: 3px solid #505050;" 
                                 value="#{bundle['Service.Profile.LabelButton.ChangePassword']}"
                                 action="#{userManagerController.changePassword()}"/>
            </h:panelGrid>
            
        </h:form>
            
            
            
                    <br/>  <br/>
            
            
            
            
        </div>

        </center>
        </ui:define>
    </ui:composition>
</html>

